package uvt.map.graph.element;

import java.util.ArrayList;

public class Street {
	
	private String name;
	private ArrayList<Segment> listSegments;
	
	public Street() {
		listSegments = new ArrayList<Segment>();
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setListSegments(ArrayList<Segment> list) {
		this.listSegments = list;
	}
	
	public void addSegment(Segment Segment) {
		listSegments.add(Segment);
	}
	
	public ArrayList<Segment> getListSegments() {
		return listSegments;
	}
	
}
